//
//  CustomKeyboard.h
//  测试
//
//  Created by 李李善 on 2017/4/19.
//  Copyright © 2017年 森之源. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "HLTextView.h"

//
//  CustomKeyboard.h
//  测试
//
//  Created by 李李善 on 2017/4/19.
//  Copyright © 2017年 森之源. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_OPTIONS(NSInteger,crearchType){
    crearchTypeKongJian,
    crearchTypeLiaoTian,
};

@class HLTextView;
@class CustomInputBoard;
@protocol CustomKeyboardDelegate <NSObject>
@required
-(void)talkBtnClick:(HLTextView *)textViewGet;

-(void)keyboardDown:(CustomInputBoard *)keyBoard;

@end

@interface CustomInputBoard : UIView<UITextViewDelegate>
@property (nonatomic,assign)id<CustomKeyboardDelegate>mDelegate;
@property (nonatomic,strong)UIView *mTopHideView;
@property (nonatomic,strong)HLTextView * mTextView;
@property (nonatomic,strong)UIView *mHiddeView;
@property (nonatomic,weak  )UIViewController *mViewController;
@property (nonatomic,strong)UIView *mSecondaryBackView;
@property (nonatomic,strong)UIButton *mTalkBtn;
@property (nonatomic,assign)crearchType type;
@property (nonatomic,assign)BOOL isTop;
+(CustomInputBoard *)customKeyboard;

-(void)textViewShowView:(UIViewController *)viewController type:(crearchType)type customKeyboardDelegate:(id)delegate;
/*
 *  如果设置键盘风格为 KeyBoardStyleComment 则可以使用下面两个方法
 *  开启评论键盘
 */
- (void)keyboardUpforComment;

/**
 *  隐藏评论键盘
 */
- (void)keyboardDownForComment;

@end

